import request from '@/utils/request';

// 其他入库单列表
export function otherStorageList(data) {
    return request({
        url: '/system/otherInboundOrder/list',
        method: 'get',
        params: data
    })
}

// 新建其他入库单
export function otherStorageAdd(data) {
    return request({
        url: '/system/otherInboundOrder/add',
        method: 'post',
        data: data
    })
}

// 编辑其他入库单
export function otherStorageEdit(data) {
    return request({
        url: '/system/otherInboundOrder/edit',
        method: 'post',
        data: data
    })
}

// 编辑其他入库单仓库
export function otherWarehouseEdit(data) {
    return request({
        url: '/system/otherInboundOrderDetail/edit',
        method: 'post',
        data: data
    })
}

// 其他入库单详情
export function otherStorageDetail(id) {
    return request({
        url: '/system/otherInboundOrder/getInfo?id=' + id,
        method: 'get'
    })
}

// 其他入库单删除
export function otherStorageDelete(id) {
    return request({
        url: '/system/otherInboundOrderDetail/remove?id=' + id,
        method: 'post'
    })
}

// 多仓位列表
export function morePosition(id) {
    return request({
        url: '/system/otherInboundOrder/getPosition?id=' + id,
        method: 'get',
    })
}

// 多仓位新建数据
export function morePositionAdd(data) {
    return request({
        url: '/system/otherInboundOrder/addPosition',
        method: 'post',
        data: data
    })
}

// 多仓位单个新建
export function morePositionAddSingle(data) {
    return request({
        url: '/system/productMultiPosition/add',
        method: 'post',
        data: data
    })
}

// 多仓位编辑数据
export function morePositionEdit(data) {
    return request({
        url: '/system/otherInboundOrder/editPosition',
        method: 'post',
        data: data
    })
}

// 多仓位编辑仓位
export function morePositionUpdate(data) {
    return request({
        url: '/system/otherInboundOrder/updatePosition',
        method: 'post',
        data: data
    })
}

// 多仓位删除
export function morePositionDelete(data) {
    return request({
        url: '/system/productMultiPosition/removeOne',
        method: 'post',
        data: data
    })
}

// 多仓位单个删除
export function morePositionDeleteSingle(id) {
    return request({
        url: '/system/productMultiPosition/remove?id=' + id,
        method: 'post'
    })
}

// 扫码入库
export function scanCode(data) {
    return request({
        url: '/system/otherInboundOrder/scanCodeForStorage',
        method: 'post',
        data: data
    })
}

// 删除扫码
export function scanCodeDelete(data) {
    return request({
        url: '/system/otherInboundOrder/deleteScanCode',
        method: 'post',
        data: data
    })
}

// 确定入库
export function confirmStorage(data) {
    return request({
        url: '/system/otherInboundOrder/confirmStorage',
        method: 'post',
        data: data
    })
}